package com.cjl.learn.configure;

import com.cjl.learn.bean.Bird;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by Enzo Cotter on 2019-07-21.
 */
@Configuration
public class BeanConfigure {

    @Bean(initMethod = "initMethod", destroyMethod = "destroyMethod")
    public Bird bird() {
        return new Bird();
    }
}
